import type { App } from 'vue'

import ElementPlus from 'element-plus'
import * as ELIcons from '@element-plus/icons'
import 'element-plus/dist/index.css'
// import { ElButton,ElForm, ElFormItem,ElInput,ElRow,ElCol,ElCheckboxGroup,ElCheckbox,ElEmpty } from 'element-plus'
// const components = [ElButton, ElForm, ElFormItem,ElInput,ElRow,ElCol,ElCheckboxGroup,ElCheckbox,ElEmpty]

export function registerElementPlus(app: App) {
    app.use(ElementPlus)
    app.use(registerComponet)
}


function registerComponet(app: App) {
    for (const name in ELIcons) {
        app.component(name, (ELIcons as any)[name]);
    }
}
